<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="m_head.jsp" %>
<body>
<%
	List<Admin> adviceList = AdminManager.getInstance().getAgents(admin);
%>

<div data-role="page" id="demo-page">
    <div data-role="header">
   <h1>后台管理系统</h1>
      
        <a href="#myPanel" data-icon="bars"  data-shadow="false" data-iconshadow="false">菜单</a>
    </div>
    <div role="main" class="ui-content">
		<ul data-role="listview" data-inset="true" data-filter="true"
				data-filter-placeholder="搜索">
				<%
					for (int i = 0; i < adviceList.size(); i++) {
						Admin advice = adviceList.get(i);
				%>
				<li>代理列表</li>
				<li><a href="m_agentdes.jsp?id=<%=advice.getId()%>">
						<h4>
							账号：<%=advice.getName()%>
						</h4>
						<p>父代理：<%=advice.getFatherName()%></p>
						<p>手机号：<%=advice.getPhone()%></p>
						<p>房卡数：<%=advice.getGold()%></p>
				</a></li>
				<%
					}
				%>
			</ul>
    </div>
    <%@include file="m_order.jsp"%>
    <div data-role="footer" data-position="fixed">
		<div data-role="navbar">
			<ul>
				<li><a href="m_agent_add.jsp" rel="external">添加代理</a></li>
			</ul>
		</div>		
	</div>
</div>

</body>
</html>
